package com.lrs.java.j2se_self.gui;
import java.awt.*;

public class TestFlowLayout2 {
	public static void main(String[] args){
		Frame f = new Frame("Layout");
		f.setBounds(200,150,300,400);
		f.setBackground(new Color(100,200,144));
		//f.setLayout(new FlowLayout(FlowLayout.CENTER));
		f.setLayout(new BorderLayout(20,30));
		Button b1 = new Button("OK");
		Button b2 = new Button("Open");
		Button b3 = new Button("close");
		Button b4 = new Button ("Quit");
		Button b5 = new Button("Good");
		f.add(b1,BorderLayout.EAST);
		f.add(b2,BorderLayout.WEST);
		f.add(b3,BorderLayout.NORTH);
		f.add(b4,BorderLayout.SOUTH);
		f.add(b5,BorderLayout.CENTER);
		f.setVisible(true);
	}
}
